package com.gegong.vmware.workstation.service;


import com.gegong.vmware.workstation.NICDevices;
import com.gegong.vmware.workstation.exceptions.VMwareWorkstationManagementException;

/**
 * 网络适配器管理
 *
 * @author dongjak
 * @version 1.0
 * @since 1.0
 */
public interface VMNetworkAdaptersManagementService extends VMwareWorkstationManagementService {

    /**
     * 获取指定主机上所有的网络适配器信息
     *
     * @param id 虚拟机id
     * @return
     */
    NICDevices findAllNetworkAdapters(String id) throws VMwareWorkstationManagementException;


    /**
     * 设置网络适配器MAC地址
     *
     * @param vmId
     * @param slot
     * @param macAddress
     * @throws VMwareWorkstationManagementException
     */
    void setMacAddress(String vmId, int slot, String macAddress) throws VMwareWorkstationManagementException;

}
